/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ISPcompliance.service.internal;

import za.ac.cput.ISPcompliance.model.Boxes;
import za.ac.cput.ISPcompliance.service.PerimeterService;

/**
 *
 * @author Enkosi
 */
public class PerimeterServiceImpl implements PerimeterService{

    @Override
    public int calcPerimeter(Boxes boxes) {
        return (2 * (boxes.getLength() + boxes.getWidth()));
    }
    
}
